#print("hello word")
#print(3+4)
#print(30)
#print("3+4")

#print("hello word\n",3+4,30,"3+4",sep='**',end='@')
#每个元素空格隔开
#print("hello word",3+4,30,"3+4",sep='$$',end='#')
'''name=""
age=22
print(name,"今年",age,"岁了",sep='')
'''
import copy
import keyword

#格式化输出
'''
name="张三"
month=3z
sg=1.62
'''
#从键盘你输入
#输入名字  input——字符型
# name=input("请输入你的名字:")
# month=int(input("请输入你的月份:"))
# sg=float(input("请输入你的身高:"))
# print("{}今年{}月毕业".format(name,month))
# print(f"{name}今年{month}月毕业")
# print("%s今年%d月毕业,身高%.2f"%(name,month,sg))

# s='aabaatrrr'
# print(s.count('a'),s[2:4],len(s))
# print(s[4])
# print(s[2:6])
# print(s[::2])
# print(s[0:len(s):2])
# t=("kakaaja",22,22,True)
# print(t,type(t),t.count(22),sep='\n')
# print(t[::2])

# t=("123","abc",22,True,(1,2,3,4))
# print(t,type(t),t[::2])
# l=["123","abc",22,True,(1,2,3,4)]
# print(l,type(l),id(l))
# 4
# print(l,l.insert(0,"zs"))
# print(l,l.remove(1))
# print(l[1])
# l[3]="ttt"
# print(l)


# d={"id":1001,"name":"zs","age":22}
# print(d,type(d))
# d.pop("id")
#
# it=d.items()
# print(it)
# print(d.keys(),d.values())
# # #拼接两个字典
# d2={"sex":"男"}
# d.update(d2)
# print(d)


# sss={1,2,3,4,"abc"}
# print(sss,type(sss))
# sss=set()
# print(sss)
# sss=set("abcdefg")
# print(sss)

# print(None)
#
# t=(1,2,2)
# print(t,type(t))
# t=set(t)
# print(t,type(t))
# t=tuple(t)
# print(t,type(t))


# sss=True
# sss=bool(sss)
# print(sss,type(sss))




# for i in range(1,5):
#     print(f"这是你第{i}次领礼品")
#     age = int(input("请输入你的年龄"))
#     if age >= 40:
#         print("卡")
#         if age <= 50:
#             print("一盒")
#         elif age <= 70:
#             print("二盒")
#         else:
#             print("三盒")
#     elif age >= 20:
#         print("花")
#     elif age >= 10:
#         print("10")
#     elif age >= 0:
#         print("笔")
#     else:
#         print("no")
#         print("领取结束")

# t=(1,2,3,"a","b")
# l=["ab","q",1]
# d={"name":"zs","age":22}
# for i in t:
#     print(i)
# for i in l:
#     print(i)
# for key,values in d.items():
#     print(f"键是{key},值是{values}")


# i=1
# while i<=5:
#     age = int(input("请输入你的年龄"))
#     if age >= 40:
#         print("卡")
#         if age <= 50:
#             print("一盒")
#         elif age <= 70:
#             print("二盒")
#         else:
#             print("三盒")
#     elif age >= 20:
#         print("花")
#     elif age >= 10:
#         print("10")
#     elif age >= 0:
#         print("笔")
#     else:
#         print("no")
#         print("领取结束")
#     print(f"这是你第{i}次领礼品")
#     i+=1

# d=[1,2,3,4,5]
# i=0
# while i< len(d):
#     print(d[i])
#     i+=1

# d=[10,100,2,3,4,100]
# j=1
# for i in d:
#     if i==100:
#         print("已经找到100了")
#         j+=1
#         break
#     print("没找到100")
#
# j=1
# sum=0
# for i in d:
#     print(f"寻找第{j}次")
#     j+=1
#     if i!=100:
#         continue
#     print("找到了")
#     sum+=1
#     print(sum)


# for i in range(1,10):
#     for j in range(1,i+1):
#         print(i,"*",j,"=",i*j,end=' ')
#     print()
# a=10
# b=20
# c=a if a>b else b
#
#
# l=['+','-','-','+']
# for i in range(0,len(l)):
#     for j in range(0,len(l)-1):
#         if l[j]=='-' and l[j+1]=='+':
#             l[j],l[j+1]=l[j+1],l[j]
#     print(l)
#
# l=[90,80,95,70,85]
# for i in range(0,len(l)-1):
#     for j in range(0,len(l)-1):
#         if l[j]>l[j+1]:
#             l[j],l[j+1]=l[j+1],l[j]
#     print(l)

# t=(1,2,(3,4))
# l=(1,2,[3,4])
# t1=copy.copy(t)
# t2=copy.deepcopy(t)
# l1=copy.copy(l)
# l2=copy.deepcopy(l)
# print(t,id(t))
# print(t2,id(t2))
# print(t1,id(t1))
# print(l,id(l))
# print(l1,id(l1))
# print(l2,id(l2))
#
# l[2].append(5)
# # l=list(l)
# # l.append(5)
# # l=tuple(l)
# print(l)
# t1=copy.copy(t)
# t2=copy.deepcopy(t)
# l1=copy.copy(l)
# l2=copy.deepcopy(l)
# print(t,id(t))
# print(t2,id(t2))
# print(t1,id(t1))
# print(l,id(l))
# print(l1,id(l1))
# print(l2,id(l2))

# print(keyword.kwlist)
# def outer(f):
#     print("outer")
#     def inner(*d):
#         print("开始运算")
#         print(f(*d))
#         print("结束运算")
#     return inner
# @outer
# def mySu1(m,n=2,*t,**d):
#           print(m,n,t,d)
#
#
# if __name__ == '__main__':
#   # mySu1(10,3,"a","b",a=1,b=2)
#   mySu1(3)




















